!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((e=e||self).cssVendor={})}(this,function(e){"use strict";var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t="object"===("undefined"==typeof window?"undefined":r(window))&&"object"===("undefined"==typeof document?"undefined":r(document))&&9===document.nodeType,n="",o="",i="",s="",u=t&&"ontouchstart"in document.documentElement;if(t){var f={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},p=document.createElement("p").style;for(var l in f)if(l+"Transform"in p){n=l,o=f[l];break}"Webkit"===n&&"msHyphens"in p&&(n="ms",o=f.ms,s="edge"),"Webkit"===n&&"-apple-trailing-word"in p&&(i="apple")}var c={js:n,css:o,vendor:i,browser:s,isTouch:u};function a(e){return function(e){if(Array.isArray(e)){for(var r=0,t=new Array(e.length);r<e.length;r++)t[r]=e[r];return t}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var d={noPrefill:["appearance"],supportedProperty:function(e){return"appearance"===e&&("ms"===c.js?"-webkit-"+e:c.css+e)}},y={noPrefill:["color-adjust"],supportedProperty:function(e){return"color-adjust"===e&&("Webkit"===c.js?c.css+"print-"+e:e)}},m=/[-\s]+(.)?/g;function b(e,r){return r?r.toUpperCase():""}function x(e){return e.replace(m,b)}function j(e){return x("-"+e)}var g,v={noPrefill:["mask"],supportedProperty:function(e,r){if(!/^mask/.test(e))return!1;if("Webkit"===c.js){if(x("mask-image")in r)return e;if(c.js+j("mask-image")in r)return c.css+e}return e}},P={noPrefill:["text-orientation"],supportedProperty:function(e){return"text-orientation"===e&&("apple"!==c.vendor||c.isTouch?e:c.css+e)}},k={noPrefill:["transform"],supportedProperty:function(e,r,t){return"transform"===e&&(t.transform?e:c.css+e)}},w={noPrefill:["transition"],supportedProperty:function(e,r,t){return"transition"===e&&(t.transition?e:c.css+e)}},h={noPrefill:["writing-mode"],supportedProperty:function(e){return"writing-mode"===e&&("Webkit"===c.js||"ms"===c.js&&"edge"!==c.browser?c.css+e:e)}},W={noPrefill:["user-select"],supportedProperty:function(e){return"user-select"===e&&("Moz"===c.js||"ms"===c.js||"apple"===c.vendor?c.css+e:e)}},S={supportedProperty:function(e,r){return!!/^break-/.test(e)&&("Webkit"===c.js?"WebkitColumn"+j(e)in r&&c.css+"column-"+e:"Moz"===c.js&&("page"+j(e)in r&&"page-"+e))}},A={supportedProperty:function(e,r){if(!/^(border|margin|padding)-inline/.test(e))return!1;if("Moz"===c.js)return e;var t=e.replace("-inline","");return c.js+j(t)in r&&c.css+t}},E={supportedProperty:function(e,r){return x(e)in r&&e}},z={supportedProperty:function(e,r){var t=j(e);return"-"===e[0]?e:"-"===e[0]&&"-"===e[1]?e:c.js+t in r?c.css+e:"Webkit"!==c.js&&"Webkit"+t in r&&"-webkit-"+e}},O={supportedProperty:function(e){return"scroll-snap"===e.substring(0,11)&&("ms"===c.js?""+c.css+e:e)}},M={supportedProperty:function(e){return"overscroll-behavior"===e&&("ms"===c.js?c.css+"scroll-chaining":e)}},T={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},N={supportedProperty:function(e,r){var t=T[e];return!!t&&(c.js+j(t)in r&&c.css+t)}},C={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},I=Object.keys(C),V=function(e){return c.css+e},_=[d,y,v,P,k,w,h,W,S,A,E,z,O,M,N,{supportedProperty:function(e,r,t){var n=t.multiple;if(I.indexOf(e)>-1){var o=C[e];if(!Array.isArray(o))return c.js+j(o)in r&&c.css+o;if(!n)return!1;for(var i=0;i<o.length;i++)if(!(c.js+j(o[0])in r))return!1;return o.map(V)}return!1}}],H=_.filter(function(e){return e.supportedProperty}).map(function(e){return e.supportedProperty}),K=_.filter(function(e){return e.noPrefill}).reduce(function(e,r){return e.push.apply(e,a(r.noPrefill)),e},[]),U={};if(t){g=document.createElement("p");var q=window.getComputedStyle(document.documentElement,"");for(var B in q)isNaN(B)||(U[q[B]]=q[B]);K.forEach(function(e){return delete U[e]})}function D(e,r){if(void 0===r&&(r={}),!g)return e;if(null!=U[e])return U[e];"transition"!==e&&"transform"!==e||(r[e]=e in g.style);for(var t=0;t<H.length&&(U[e]=H[t](e,g.style,r),!U[e]);t++);try{g.style[e]=""}catch(e){return!1}return U[e]}var F,G={},J={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},L=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g;function Q(e,r,t){if("var"===r)return"var";if("all"===r)return"all";if("all"===t)return", all";var n=r?D(r):", "+D(t);return n||(r||t)}t&&(F=document.createElement("p")),e.prefix=c,e.supportedKeyframes=function(e){return"-"===e[1]?e:"ms"===c.js?e:"@"+c.css+"keyframes"+e.substr(10)},e.supportedProperty=D,e.supportedValue=function(e,r){var t=r;if(!F||"content"===e)return r;if("string"!=typeof t||!isNaN(parseInt(t,10)))return t;var n=e+t;if(null!=G[n])return G[n];try{F.style[e]=t}catch(e){return G[n]=!1,!1}if(J[e])t=t.replace(L,Q);else if(""===F.style[e]&&("-ms-flex"===(t=c.css+t)&&(F.style[e]="-ms-flexbox"),F.style[e]=t,""===F.style[e]))return G[n]=!1,!1;return F.style[e]="",G[n]=t,G[n]},Object.defineProperty(e,"__esModule",{value:!0})});
